package cn.wbnyua.msm.core.exception;

import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * 作者：wbnyua.
 * 创建时间: 2023/2/9 9:04.
 */

@Data
public class RuntimeExceptionHandler extends RuntimeException{

    private String code;

    public RuntimeExceptionHandler(String message){
        super(message);
        this.code = "500";
    }
    public RuntimeExceptionHandler(String code,String message){
        super(message);
        this.code = code;
    }

}
